package com.ccc.mq.dynamic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName(value = "rocket_topic_msg_model")
public class RocketTopicMsgModel implements Serializable {

    private static final long serialVersionUID = 8168014429528407584L;
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 消息队列信息id，必填项
     */
    @TableField(value = "rocket_id")
    private Long rocketId;

    /**
     * 消费者组，必填项
     */
    @TableField(value = "consumer_group")
    private String consumerGroup;

    /**
     * 主题名，必填项
     */
    @TableField(value = "topic_name")
    private String topicName;

    /**
     * tag,多个tag时，用|隔开；非必填
     */
    @TableField(value = "sub_expression")
    private String subExpression;

    /**
     * 1集群模式，2广播模式，必填项
     */
    @TableField(value = "msg_model_type")
    private Integer msgModelType;

    /**
     * 是否为顺序消费， 1 true; 0 false;
     */
    private Boolean orderly;

    /**
     * 状态，1 有效； 0 无效；
     */
    private Integer status;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time")
    private LocalDateTime updateTime;

}